package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("t_customer")
public class CustomerBean {
    @TableId(value = "pk_customerId",type = IdType.AUTO)
    private Integer id ;
    @TableField("c_name")
    private String name;
    @TableField("c_person")
    private String person;
    @TableField("c_phone")
    private String phone ;
    @TableField("c_addr")
    private String addr;
    @TableField("c_email")
    private String email;
    @TableField("c_type")
    private String type;

    public CustomerBean() {
    }

    public CustomerBean(String name, String person, String phone, String addr, String email, String type) {
        this.name = name;
        this.person = person;
        this.phone = phone;
        this.addr = addr;
        this.email = email;
        this.type = type;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPerson() {
        return person;
    }

    public void setPerson(String person) {
        this.person = person;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "CustomerBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", person='" + person + '\'' +
                ", phone='" + phone + '\'' +
                ", addr='" + addr + '\'' +
                ", email='" + email + '\'' +
                ", type='" + type + '\'' +
                '}';
    }
}
